package com.bo.baby2.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
* @program: baby2_p2p
*
* @description: ${description}
*
* @author:波
*
* @create: 2020-07-14 21:18
**/


/**
    * 充值记录表
    */
@ApiModel(value="充值记录表")
public class TRecharge implements Serializable {
    /**
    * id
    */
    @ApiModelProperty(value="id")
    private String id;

    /**
    * 充值账户id
    */
    @ApiModelProperty(value="充值账户id")
    private String userId;

    /**
    * 用户名
    */
    @ApiModelProperty(value="用户名")
    private String username;

    /**
    * 银行卡id
    */
    @ApiModelProperty(value="银行卡id")
    private String bankCardId;

    /**
    * 交易号
    */
    @ApiModelProperty(value="交易号")
    private String tradeNo;

    /**
    * 充值金额(单位：分)
    */
    @ApiModelProperty(value="充值金额(单位：分)")
    private Long amount;

    /**
    * 充值日期
    */
    @ApiModelProperty(value="充值日期")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime rechargeTime;

    /**
    * 审核状态( 0:审核拒绝  1:审核中  2:审核通过 )
    */
    @ApiModelProperty(value="审核状态( 0:审核拒绝  1:审核中  2:审核通过 )")
    private Integer state;

    /**
    * 备注
    */
    @ApiModelProperty(value="备注")
    private String remark;

    /**
    * 创建日期
    */
    @ApiModelProperty(value="创建日期")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getBankCardId() {
        return bankCardId;
    }

    public void setBankCardId(String bankCardId) {
        this.bankCardId = bankCardId;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public LocalDateTime getRechargeTime() {
        return rechargeTime;
    }

    public void setRechargeTime(LocalDateTime rechargeTime) {
        this.rechargeTime = rechargeTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", username=").append(username);
        sb.append(", bankCardId=").append(bankCardId);
        sb.append(", tradeNo=").append(tradeNo);
        sb.append(", amount=").append(amount);
        sb.append(", rechargeTime=").append(rechargeTime);
        sb.append(", state=").append(state);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}